* babl/babl.h (BABL_ALPHA_THRESHOLD): Instead of an arbitrary
threshold, use one hundredth of the channel intensity resolution
when using 16 bit integers i.e. 0.01 / (2^16 - 1).
svn path=/trunk/; revision=360
+2009-01-14 Martin Nordholts <martinn@svn.gnome.org>
+
+ * babl/babl.h (BABL_ALPHA_THRESHOLD): Instead of an arbitrary
+ threshold, use one hundredth of the channel intensity resolution
+ when using 16 bit integers i.e. 0.01 / (2^16 - 1).
+
2008-12-08 Martin Nordholts <martinn@svn.gnome.org>
* babl/babl-internal.h (babl_assert): Don't just eek when an
#define BABL_MAGIC 0xbAb100
/* Alpha threshold used in the reference implementation for
- * un-pre-multiplication of color data.
+ * un-pre-multiplication of color data:
+ *
+ * 0.01 / (2^16 - 1)
*/
-#define BABL_ALPHA_THRESHOLD 0.0001
+#define BABL_ALPHA_THRESHOLD 0.000000152590219
enum {
BABL_INSTANCE = BABL_MAGIC,